Fixed database error

Fixed bug where database would add the recent amount added without user
input