make sqlg work on postgres