added support for dbhost and dbport