Just some fixes for NULL for extDB3 (since it is now supported properly
when doing prepared statements).
Reverted createTerritory to passing flag_stolen_by_uid to an input
value.
Just incase there is a 3rd party code that uses this, possible used by
admin tools to restore base without a flag etc...