Converted website to access database using PHP