refactor class.db, addCategory.db
Merge pull request #14 from mellowonpsx/php_refactor

refactor class.db, addCategory.db