Fixes for shardb for course clone, etc