check for database tables fixed