changes to mysql database - foreign keys added