updated $tables variable to be public on Base_module_model