database.php issues updated