[#1374] datastore:use bind params instead of string formatting