route management

after several hours of debugging and testing, route management is
finished. also some small changes to database manager format. included
in lib is a mysql connector library. will be used by mysql manager when
that is written later.