fix deprecated
Merge pull request #23 from JamesS237/fix_deprecated

Fix deprecated find_by calls