updated connection.end to connection.release with new npm module