revert keeping db connection