Improved database insertion

Now inserting with Batch PreparedStatements; this hasn't sped up the
execution times at all, still always at least a minute.

Added commenting.