Allows db.query({ sql: "..." }, [ val1, ... ], cb); (#390)

When sql was an object, the second argument was assumed as being
callback instead of checking if it could be the values.