Create new file with local db thread