Started to get rid of textitems table usage for smaller db size (things are quite broken and what works, works because of a miracle)
Added last revision db file
Added simple check for someone trying to open include file directly
Mostly trying to unbreak what wasn't really broken, from some perspective