[#825] Replace % with %% to escape it in sql statements
Merge branch '825-percent-in-sql'