Fix db connection for local dev, un-hard-code polling endpoint