fix bugs, remain save_db_test