switch compiling for after the creation of db
add tests and refactorings for Navigations (everything)