Fixed db connection