added checks for 2 parameters: dbtable and # of sites