Some of the errors slightly fixed

Changed it so each manager has its own dbmanager, this has seemed to
sort of fix the errors I was having earlier. Although it hasn't fixed
them 100%. I still have the errors pop up every so often.