Abstracting out db connection stuff.