changed Database.php to previous php version, no PDO