fixing true false db issue