changed back return type of db_list and table_list to array