Database config for preview and production