resolve trouble with db