repository for database class spring 14