update database and config