Make the $Messages array available within the DB_query function