implemented logic of page navigation, upgraded the databases and cleaned up old test routes