Update Pool.js to allow calling Pool.prototype.query with no callback

Added a check in Pool.prototype.query to see if the callback is a function, to allow calling it with no callback specified (i.e. for UPDATE/INSERT type queries)