correct docblock
remove unneeded code and use proper method to set parameters
check for array before proceeding
correct location of table addition and properly format
remove usage of database name in SQL since it is failing on local MySQL installation. Move feedback to variable and display in correct place.
Merge pull request #1694 from craigh/upgradeFixes

1.3.5 -> 1.4.0 Upgrade fixes
Merge branch '1.4' of https://github.com/phaidon/core into 1.4