fixed db_name bug