taking init db out of main index view