Made HashRouter a lot smarter
update database parsing code