Fix table creation order

It was trying to create a foreign key with the `r4_albums` table before that table was created.