fix connection.release() in query.js