corrected Date function and changed amounts to integers; removed "delete
on cascade" for Deals.