exit with a message if db file is not accessible