session config an db update