Added better error handling to vlogger script in case that the mysql database connection is not available.