Adding junit covering sql update with DateTime as parameter
Other refactoring