database working correctly with postgres, tests now unexpectedly passing