marka
committed
on 30 Apr 08
added temporary db flushing option (to fix later)