Queue block actions

Use an ExecutorService to handle writing to the database. This will
greatly reduce lag when logging and should keep from overloading the
database.