validate db