fix for subscription transaction
fix for preference transaction
db model update
Merge pull request #18 from flyingice/master

fix for transaction + db model update