updated ses.php to send data to database

Now sends batch to table