Refactored database access structure to make working with DAOs easier and lend itself to be multi-threaded later if wanted.