Situation with getLastError got clear. Service commands moved from db to collection, leaving db as a plain connection pool wrapper and collection creator.