update database itself