Corrected a few bugs and added sync operation to the dotted_db driver.