Versioning Tree Database, for PHP using SQL as backend