Use ServiceManager for logger,db

Signed-off-by: RAKOTONIAINA Onjanirina <onja711@gmail.com>