fixed routes, added db async init handling