Update inc/class.db.php

add charset set support
Merge pull request #44 from voidman/patch-2

add charset set support