Update db in scripts