initial implementation of centraldb
fix scope error in centraldb
added mock centralDB to router test