move impl of tstring database to tstring.cpp
move headers one file forwards
advance boost headers one step forwards
remove some unnecessary includes
move include from a header to its compilation unit

This include is apparently unnecessary but we don't compile without
it... it seems to only affect this compilation unit though.