Fixed bug of mysql insert