Fix for #19 : Timestamps in microsecs, wrong dates in github

Here's the PR for issue #19 (only tested with postgres, you probably want to test it against others databases)