fixed foreign key for database and added challenge title