Fix db look up error and init prod/consumers