improvement restore_db