Set up doctrine