Improved setting DB user context