reading database info from file