Deleting db connection