upgrading core, using log, taking db as param and documenting
0.2.1 main method takes db as param and is documented