)         cursor.close()         connection.commit()         res['status'] = 'OK'     except Exception as e:         res['status'] = 'ERROR'         res['error'] = e     finally:         connection.close()      return res