Updated code to fix date time in database. now storing miilisec so that
it can interoperate with java/joda date time