date now properly submits to the database