Storing data to MySQL Database