Saving to mysql is now working