Change endnode to doctrine database.