Fixed mysql db.clear()
Reset restores backup on error
fixed mysql db.dump()