Sorting out database settings for dev and production