Execute db access via an executor service instead of using a new thread