Use database specific string to date converter function
Minor changes. TODO: Need to fix the paths