added methods in DAO Layer, which cleans old rows.