add creation script for legacy tables