add some indexes
improve moments pagination
tests for moments pagination