make db works