Changed pop_offline_messages to only delete messages select query retrieved from offline storage