updated database with postgres adapter