database.php file added and using MYSQLDatabase class we handle db connection