Fix problem LOCK file for databse