uncomment line to remove temporary directory
lock using database