Fixed to choose db by environment