refactoring db info read.
add rake task