refactored Db class, no more C.php, expect git fails due to mv instead of git mv :P