class work on the database interface