fixed bug with dbname