Fixed ScriptedSQL sync script for PostgreSQL by hacking the timestamps