got working with postgres