move databases recipe from app definition, cleanup node data after sync, fix errors