Changed DbManager to use using blocks.