SmartDAOFactory fixes, added QueryBuilder for TriggerDAO to query triggers tables