convert SqlPillow to mixin

so that it can be used with python pillows
Merge pull request #78 from dimagi/sql-mixin

convert SqlPillow to mixin