revise save to MySQL method