Fixed issue with all tables not being created