Change log to accept the dbname as well