set created & updated dates in database