log startup & run database query in parallel