Cleaned up the data being writtend to the database for the data field