Added more db stuff

Added a lot to the db manager, changed the settings around a bit (adding
in GUIDs to everything)