change jdbc url to follow permission