SmartDAOFactory fixes, fixed TriggerDAO.queryBuilder method