Add date and time in db