add utility method to get db datetime