complete database part