changed application directory to "Application Support"

- moving old database if necessary
fixed issue with addedAmount

int changed to NSNumber