Database should fall out of scope when not in use to free filesystem