Fix selection db path and general cleanups in update scripts.