Added basic structure for database access