You haven't stated which language, but I would presume VB.Net
You haven't said what type of Database, I will assume SQL.
You haven's said how/where hosting is.
ANd you have shown much by way of code.
I would suggest you go to
Here[
^] or any of the other links available.