Update db context