Fixed db username reading