pass db name as argument