Update mysql-backend.js

fixed undefined error when connection to DB fails