updates password for db