MediaLibrary: Delete and recreate all tables in the same transaction
MediaLibrary: Delete and recreate all tables in the same transaction

Fix #399

chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary