Fixed db_list_generations in database_calls.py to return a sorted list
Reconstructed analytics.py to create its own instance when analyzing databases