Added modified index

Added a new index modified/<reverse_timestamp>/<data_id> and
get_names_info is now get_data_ids which just returns the data ids in
most recently modified order using the new index.

This is much more useful than the name id order from before, but does
slow down creating data entries by a request.
flake8
Refactor for validation and working on cli