added clean DB close