update formatting to correctly add to the db