fixed all SQL saving