Rewriting Rules to Permeate Complex Similarity and Fuzzy Queries within a Relational Database System