Injected QueryBuilder in Prails.
Added tests to verify injection.
Moved methods to utils.
Added rescue messages for QB.