added database to track clicks