Fixed db connection for dev/production