db connection functionality updates