remove unused imports
set_db() for documents loaded from non-default db