Including a better exception for query issues

Included QueryException class, that holds SQL and Bindings. Throwing it instead of a bland Exception helps a lot developers to actually catch different problems instead of having to use a catch-all clause that informs very little about the problem.