Added foreign keys to Photo and Facts classes