Implementation DAO and Service layers for photo gallery