Updated insert functions in inserts.php and added a helper function to mysqliFunctions.php