DB config and validation