improve op_db.sh