Add sysdate database portability function
Merge remote-tracking branch 'origin/london_hackaton' into pre-release-v1.2