Create a small database for testing.
Added sort_by stress tests.