Adding adjustItemCounts to mysql db adapter. Closes #1550