added check for database tables being created