def selectFromDB(field, value):
    try:
        db = DB()
        js = db.dataToJson("aparts", "{} = '{}'".format(field, value))
        return json.dumps(js, ensure_ascii=False)
    except Exception as e:
        return json.dumps({"status": "err", "error_text": str(e)})
def dataFromCheap():
    try:
        db = DB()
        return json.dumps(db.dataToJson("aparts_cheap"), ensure_ascii=False)
    except Exception as e:
        return json.dumps({"status": "err", "error_text": str(e)})