in reply to Determining if SQLite db exists

First, I don't see a use DBI anywhere.

Second, since SQLite databases are stored in a single file, you can check for its existence with -e $database_name. So check for the existence of 'as2cond.db' and don't even attempt the connect() if it doesn't exist.