Fixed date_and_time fields in database tables, now recording date and time correctly