local db now deletes messages that no longer exist