Functioning edit of the greenDAO tutorial with deprecated code replaced