Enabling database logging for the last lock file check