Made the buildWhereClause method in the db adapter public so it can be called by mapper classes