working foreign keys, added blades, half-assed working generic table view