added db_name and setdb