def insert_or_update_resource(rent_data: rent.Rent):
    try:
        print("ok")
        results=CUD.insert_or_update_rent(rent_data)
        return {S_M}
    except (Exception, psycopg2.DatabaseError) as error:
        print(error)  
def insert_or_update_model_resource(model_resources_id: int, model_resource_data: resource_model.ResourceModel):
    try:
        results=CUD.insert_or_update_model_resource(model_resources_id,model_resource_data)
        return {S_M}
    except (Exception, psycopg2.DatabaseError) as error:
        print(error)
def insert_or_update_station(station_id: int, station_data: station.Station):
    try:
        results=CUD.insert_or_update_station(station_id,station_data)
        return {S_M}
    except (Exception, psycopg2.DatabaseError) as error:
        print(error)
def insert_or_update_resource(resources_id: int,st_id: int,MR_id :int, resource_data: resource.Resource):
    try:
        results=CUD.insert_or_update_resource(resources_id,st_id,MR_id,resource_data)
        return {S_M}
    except (Exception, psycopg2.DatabaseError) as error:
        print(error)