Add activity logic for showing last row from DB.