Fix database for amount validation