Fix save function to actually update database record. Add a test.

Hello Anton, I discovered that the session record in the database wasn't being updated because the record id wasn't known to the save function and so the gorp Update function was always updating the record with id=0. I've fixed this and added a little test.