fix database escape character bug