Correctly set location of db based on env