removed database_constructor and added struct database_t