title: How to update SQLAlchemy row entry?
body: <p>Assume table has three columns: <code>username</code>, <code>password</code> and <code>no_of_logins</code>.</p>
  
  <p>When user tries to login, it's checked for an entry with a query like</p>
  
  <pre><code>user = User.query.filter_by(username=form.username.data).first()
  </code></pre>
  
  <p>If password matches, he proceeds further. What I would like to do is count how many times the user logged in. Thus whenever he successfully logs in, I would like to increment the <code>no_of_logins</code> field and store it back to the user table. I'm not sure how to run update query with SqlAlchemy.</p>