Fix the database SQL when reseting a configuration parameter

Per a report from Bartosz Dmytrak.