DB class: queryBuilder method

smally update.
- worked on queryBuilder method
- added in result counter