Update Database.php

updated Database Class

NOT TESTED