Fix param not being read.
Fixed mock database not saving IDs properly.
Stop statement when it is deleted.
Set param explicitly.