adds mongoose provider to database handler of api lib