Cleaned up index view a bit. Added a bit more nuanced DB connection option for training