added primary and foreign keys to make join table associations work