Database environment lookup fixed