Index: Add Clients and Sources now report progress
MainWindow: Move updating sources to thread

- Also update progress bar
Index: Specify the full path to the database
Database: Remove broken debug
Index: Move opening of db to open function

- This allows better error handling
Index: Handle null to/fromDate in getPhotos
cli: Add basic command line interface