Ak to chces trosku globalnejsie tak si vytiahni z DB zoznam tabuliek a v cykle to prebehni tym replace.