fix errors in dbctrl and m bug in spikedb

Signed-off-by: Mattias Andrée <maandree@operamail.com>