Added database connection classes and test cases