Switching to postgres db