code overhaul on dbm. loads routes and stops with better error handling