extensive updates deprecating many functions, working on the database query builder, refactoring much of index, adding new libraries
adding new lib.php to handle lib functions