Modified db connection for release