Update index.php

Added functionality to add user to database. Also changed query to insert user because it wouldn't work for me as it was.