Change sum into integer
Add an enum describing the sum type
Close database after use
Add type into Money object and set it with an enum
Add a method to add the person in the database