Change connection to come from the model class, not the instance

My fix for issue #3, based on the deprecation warning set in activerecord 4 rails/rails@992d87db02507363a4ad4ab40a3e4c4b32cf0408