Hacky connection to postgres