More Abstractions + JUnit

Added JUnit testing class
Further abstracted and cleaned up classes in DB Package