insert and fetch work with postgres