fixed incorrect sprintf format usage; fixed access to uninitialized memory in DB...