Photo database lock file