--- a/ForgeBlog/forgeblog/main.py
+++ b/ForgeBlog/forgeblog/main.py
@@ -103,9 +103,9 @@
         super(ForgeBlogApp, self).install(project)
 
         # Setup permissions
-        role_developer = M.ProjectRole.query.get(name='Developer')._id
-        role_auth = M.ProjectRole.query.get(name='*authenticated')._id
-        role_anon = M.ProjectRole.query.get(name='*anonymous')._id
+        role_developer = M.ProjectRole.by_name('Developer')._id
+        role_auth = M.ProjectRole.by_name('*authenticated')._id
+        role_anon = M.ProjectRole.by_name('*anonymous')._id
         self.config.acl.update(
             configure=c.project.roleids_with_permission('tool'),
             read=c.project.roleids_with_permission('read'),