SQL Re-Organization.

Signed-off-by: KeiKun <the.keikun@gmail.com>
Organized sql-tools.
Updated sql-upgrade files.
Updated warg skill check, special thanks to Rytech
Merge pull request #286 from MrKeiKun/fix/organize_sql_files

Fix/organize sql files
Removed unsafe pointer typedefs

- If a variable doesn't look like a pointer... Maybe it might be a
  pointer after all. Please, give me back my '*' sign.
- See CERT DCL05-C.

Signed-off-by: Haru <haru@dotalux.com>
Fixed reserved __identifier violations

- Complies with CERT DCL37-C
- Fixes issue #293 (special thanks to elfring)

Signed-off-by: Haru <haru@dotalux.com>
Removed some c++ compatibility definitions

- Neither our code nor 3rdparty code is, (or will compile as) C++,
  regardless of those checks.
- Special thanks to panikon.

Signed-off-by: Haru <haru@dotalux.com>
Explicitly specify 'void' when a function expects no arguments

- See CERT DCL20-C.

Signed-off-by: Haru <haru@dotalux.com>