Fix db method context