Upgrade to Spring 4.0.5, setup environment-aware database settings