Finding dabatase details from RHN config file, make is work out of the box plus other improvements