put db name to options,fixed bug on sorting after group