database changes

rates table - added DetachID
detachment - deleted rateID
some columns are nullable
Merge pull request #9 from raidenphoenix011/master

database changes