Updated functions to comply with the date changes

Any writing of the date to the database has been changed to reflect the
data type change from date to string