Create db class
initilizing index page