Interface for database usage