db file unlink code fixed