beginnings of new lock-in for main.db