Added sql code to add data to ownership