added database functionality to User.class.php
added UserTools class
added global include
added register.php