Refactored DB to auto-reconnect. Also does not stupidly display my DB creditionals on github.