Refactored to create or drop Tables from Database