introduced BookHash table
DB class structure simplification (no statement variables, map instead)
BookHash table used for faster synchronization (we do not recompute SHA-1 hash every time)