update doc, rename vars in app.py, set #likes/unlikes for insert