Remove ORDER BY from find() queries, fix #496.
Do a single query to get collection names, fix #497.