add amount field and update the database.