Fix bug update script when running SQL script
Separate modules updates in dedicated file

+ small refactor in update.py