Added click count to database and index view