db wrappers: moving _ns, _db init.