newaccount and session guard
doc for db package