write code to delete and create database tables