added back datetime to database