Revert "Revert "For users without both postgres and mysql installed, be a little more intelligent about the related gems""

This reverts commit fcd64dc63cfd60b4c143c6ad4855d25a3ef09037.