temp implement repository for database entities