added names to the foreign keys and made the table names plural