complete database class