Added Database constructor and addRelation method