I'd run file on them, or look at File::MimeInfo::Magic
In reply to Re: determining .db file type by dorward in thread determining .db file type by dannoura