finall update client
update server and db