Fixed Table name
Changed mapping from resource to class