Fixed incompatibility with PHP 5.3
Added an init command to initialize the versioning table on a legacy database