Migrate to postgresql, add microsecond precision to dates