A working database

Finally got the database to work properly.
it is finally creating and deleting tables properly

Next step is to clean up the codes for the databases