Modded SQL for more info in tables, added visit.php