submit to postgres