fixed database auto-load schema for ON CASCADE DELETE