user session update database transaction upgrade
fixes #24
fixes #23