Updating dependencies.
Refactored locations index code and moved database related calls to a connection class.