Gallery: Fix database creation on update, also only from version less then 0.5
Gallery: Fix database creation on update, also only from version less then 0.5

nextcloud/server,pollopolea/core,whitekiba/server,nextcloud/server,pmattern/server,endsguy/server,andreas-p/nextcloud-server,Ardinis/server,michaelletzgus/nextcloud-server,owncloud/core,bluelml/core,whitekiba/server,sharidas/core,cernbox/core,IljaN/core,IljaN/core,endsguy/server,andreas-p/nextcloud-server,whitekiba/server,cernbox/core,endsguy/server,andreas-p/nextcloud-server,pixelipo/server,cernbox/core,bluelml/core,pollopolea/core,andreas-p/nextcloud-server,lrytz/core,cernbox/core,xx621998xx/server,lrytz/core,sharidas/core,andreas-p/nextcloud-server,pollopolea/core,jbicha/server,xx621998xx/server,phil-davis/core,Ardinis/server,xx621998xx/server,endsguy/server,jbicha/server,michaelletzgus/nextcloud-server,michaelletzgus/nextcloud-server,whitekiba/server,bluelml/core,pmattern/server,xx621998xx/server,jbicha/server,jbicha/server,bluelml/core,pollopolea/core,owncloud/core,Ardinis/server,sharidas/core,nextcloud/server,pixelipo/server,pmattern/server,IljaN/core,bluelml/core,pollopolea/core,owncloud/core,sharidas/core,xx621998xx/server,sharidas/core,owncloud/core,IljaN/core,Ardinis/server,lrytz/core,lrytz/core,pmattern/server,nextcloud/server,cernbox/core,Ardinis/server,michaelletzgus/nextcloud-server,whitekiba/server,jbicha/server,IljaN/core,pmattern/server,owncloud/core,pixelipo/server,endsguy/server,lrytz/core,pixelipo/server,pixelipo/server