fix to get dbname only