Commit changes to database immediately

It seems sketchy to only commit the session on object deletion, especially knowing how problematic Python's `__del__` method is. Instead, commit on change.