Repository for database class