Revert last changes, need parameters for indexes and foreign keys.  Different solution + example with automatic creates/drops.