PHP-1017: move command cursor from collection to db