make update.sh work when no database yet created