fixes more if statements and some warnings

fixes wrong memset

some db.c fixes

(0) -300 -100 -30 -10 -3 +3 +10 +30 +100 tip

mercurial