New db.pl script, ms time support, better install, http parsing bugs, db versioning

* New single script for dealing with init/upgrading the database
* Save the time ms also
* make install works much better now
* fixed lots of issues with http parsing missing some sessions
* the database is now versioned and strict checking turned so fields can't be created by mistaked with bad indexing