switch to postgres for tests, fixed upload tests
added edit specs, made them more reliable