Improved versioning. DB table change.

- Added 'DBVersion' table to track database versions for migrating
- Added 'version_int' to strlib.txt and modified 'version'
Added sqllib.txt for SQL statments and minor changes.

- Added sqllib.txt to store SQL statments and added new CREATE VIEW
  statements
- Added new code to read and store SQL statements from sqllib.txt
- Slight change in variable scopes in some file loading methods
Added some usage of sqllib.txt and views.

- Replaced DB table creation with statements loaded from sqllib.txt
- Replaced DB statement in loadDBPlayerRecord() with views
- Added view creation in initDB()
Fixed TPPot table and added new migration.

- Changed the 'pot_id' column to 'id' in TPPot
- Added table change to migration from v0.3.9
- Slight modification to migration so that it won't attempt to insert
  records for existing nicks and thus not fail
Added DBVersion checking and updating for migration.

- Checks if the DB is already up-to-date
- Adds a new record to DBVersion at the end of a successful migration
Fixes for migration and sqllib.txt.

- Made changes to 'migrate' command to make modification of TPPot work
- Added check to avoid attempting to add duplicate records in BJHouse
  during migration
- Changed tokenizer char in sqllib.txt to '|' to avoid conflict with '='
  in some SQL statements
- Added more SQL statements to sqllib.txt