You can create a class that can be reused by any page that requires database interaction, webForms and winForms will be able to use it.
This class can return whatever you may need, Datasets, Dataviews, Scalars, ExecuteNonQueries, etc...
I would leave all the SQL Select statements in the class (let's say Business Layer) that inherits or instantiates the database class.