Added handling of database file format.
Added handling of duplicated file.