Added database changes to upgrade_*.sql

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1855 from emanuele45/upgrade_fix

Added database changes to upgrade_*.sql from 1.0.1
! update to use mysqli interface
! The character table was to restrictive for international chars
! The default ports have changed, old will work fine, but
are no longer the recommended values 3312->9312 3313=>9306
! magics value should be 0, docs were wrong
! rest of the mysql => mysqli changes for searchql
! rename and add missing validation tests
! rename to show its a class
! add footnote test
! renamed
! add additonal preparse tests
! Need to protect redefining constants when in a separate process
! add a proper password for the test User
! add a clear table function, good for local testing ;)
! add vendor and build to ignore files for local testing
! add auth subs testing
! add browser detection tests
! add html to MD tests
! add basic mention subs tests
! tweaks so its testable
! Add some util class tests
! prevent undefined error under certain conditions