fixed profile updating for db