interface for database