adding db to index page