Created relationships in Market class for db