Issue #2 - Database in DAO
-- Final code for databse operations in DAO