code update on route and stop. added new function to DBM