read database.yml isntead of in cap config file