Type and Location properties for DAOFactory
Fixed checking for tag existence and better error message