QSharedPtrify dbcmd creation.