finished DB.php functionality. 

Added input.php class to validate input.