Add a layer of abstraction for database access