Move the code to get the user's roles on a resource into the Role model as a class method
In app.js initialize the db and models before initializing the RBAC middleware which requires the role model