getting db info from file.