Added databasecontroller class