Fixed the date field and how the date picker inserts dates into the db.