Fixing bugs in reading bit

Fixed:
- Throwing StackOverflowException when SQL has empty where
- Missing  quotes on urls
- Throwing errors and not catching them