Read database info.