Merge pull request #12 from leyyin/master

Fix TMP issue and remove old sql dependency
solves #14 Fatal error in stkaddons/manage.php?view=logs
Added support for various common datatypes
added support for explict type specification
Commit @hellboy2k8's changes, with minor cleanup