replaced the chr- prefix in SQL insert statement