attributeparser tokenizing, decision logic, and db request formatting