WIP - refacto : split the project

between admin instance, api instance which gets the data and a DB lib
project for mongo