Store a new GEMINI query.

def queries():
    """Store a new GEMINI query."""
    query = request.form['query']
    name = request.form.get('name')
    app.db.add_gemini_query(name, query)
    return redirect(request.referrer)