add functionality to choose db depending on env