practice repository for database