extract dbname