Maybe it's a good idea to add IF EXISTS here and furthermore. We don't know the initial version of the database and the existence status.