trying to fix issues with database.php