Rely more on JDatabaseQuery class
Merge pull request #8 from OSTraining/db_query_proposal

Rely more on JDatabaseQuery class