make DB work