Small db tweaks in Base Controller for production and testing environments.