changed  mysql connection() variable to private from public