Separated DB config info from rep

Misc. Changes to index
Changed paths in App class