fixed db, fixed search problem from position, rewrited dump