Preserve milliseconds for timestamps in postgres

Postgres timestamps have millisecond precision. This patch preserves the millisecond part of Utils.now when dialect is set to postgres.