swap databases based on NODE_ENV