Implement functionality triggered by routes for getting projects and canvases

Please be aware that the database scheme changed. You have to update your database.
I think @baerenfaenger's solutions is okay, because it is only needed in two functions. There is no need to instantiate it on every request.