Refactor of DbQueryHelper to accept arbitrary options param