Adds Database class and index view