Cleanup: Move create_local_tm() to pootle.core.initdb

This way we:

* Consolidate code on pootle.core,
* Keep a cleaner code on the upgrade module,
* Keep all the DB initialization code in one place.