Gather database connection details from model if it has its own, otherwise take connection details from ActiveRecord. Allows transparently use specific model database settings with sphinx