add sessios.commit_and_reset method

Handy when you want to read fresh data from db after commit (like in
test cases).