Issue #70: database adaptation for multi-tenancy