Update db in bash file