started oop
database.php added which contains class for database