Free the database even if amount = 0