Lots of new updates

QueryBuilder, revised Sql, phpdoc