in reply to determining .db file type

I'd run file on them, or look at File::MimeInfo::Magic