Switched from PDO to mysqli to fix inserts not working and not producing errors