Added functional to use exist database file.