Added a class to connect to the database, a passing test for this class. Also updated and simplified the DAO interface and changed its the stub class implementing it accordingly.