Fixed warnings on database destruction.