Create insertlog.php

PHP script to insert logs in the database.