initial conversion to query builder. in progress conversion of insert/update operations and migration of filters to hooks