Added addRelation function to database that accepts a string name and relation object