add reset database and clear log functionality, simplify debugging