fixed bug: wrong portnumber and dbpath