What kind of database?
If it's an SQL based on then you should just be able to do something like this:
mysql -uusername -ppassword database <<EOF
update tablename set column="newipadress" where column="oldipadress"
Replace username with the right one and password with the right one (-u and -p is not to be touched).
Also change newipadress to the new one and oldipadress to the old one. Change column to which columnname the adress is in and tablename to the correct table.
If it's a file you're going to change then there are several ways.
sed -i "s/oldipadress/newipadress/g" filename
This will change the file "filename"
You can use VIM for this also, open the file and write:
or you can do it like this also
cat filename | replace "oldipadress" "newipadress" > newfilename