Adding extension to clear db connections