modified grouping incrementer
modified db for text to text type