change db connection method