refactor shelterdog class to be activerecord