Added Database library

the DB library has been added. Example usage can be found in tests/DB.php