fixes sql database escape characters and sql data table