removing unused $database variable in IndexController