Update Database.php

Rewrite of the Database Adapter