Move db and table creation to own tool