Refactor db code

Start to refactor the code used to get data into/out of mongo. I'm going to get started on the user configurable watch functions. Tacking that into the existing Xhgui_Db class felt wrong as it would be handling two different kinds of data/responsibilities. Instead pull the existing code into Xhgui_Profiles, which will allow for other collection based logic classes to be added beside it comfortably.