fix missing data.
change mysql to mysqli.
Merge pull request #3 from ryanermita/fix/use-mysqli

some changes.