Fr integrating grimoire api

Integration of the proof of concept code to play with SQLAlchemy. It is needed for the new demo.py analysis, which I will upload in a separate pull request.