switch to postgres for local and deployment