def METHOD_NAME(myname, argv):
    level = logging.INFO
    level = logging.WARNING
    level = logging.DEBUG
    logging.basicConfig(level=level, format='%(asctime)-15s %(message)s')
    if len(argv) not in [0, 1]:
        print("Usage: %s [db_path]" % myname)
        exit(1)
    db_path = argv[0] if len(argv) > 0 else _DB_PATH
    logging.warning("Serving at %s:%s [db:%s][pid:%d]...",
                 _SERVER_ADDR, _SERVER_PORT, db_path, os.getpid())
    open_database(db_path)
    server = gevent.server.StreamServer(
            (_SERVER_ADDR, _SERVER_PORT), handle_request)
    server.serve_forever()