made a class of database.php so we can invoke it from other classes