adding os check to db_ora.py