Fix schema db environment