Server: handle tx update messages in database transaction (fixes #2)