init should be after the engine is added to the database