added primary keys, wrote part of lists class