[BUGFIX] Improve database scheme updater