Changed values entered into database into correct format.