support db name as first parameter