set postgres command based on env