adjust db connection