adds delete to tables
boost getRelationsSync performace by caching regex