db.open & query.exec success check at startup