fix: lock db stuff