Added foreign keys to database. These can't be used right now due to the Doctrine DBAL not supporting them.