db query in goroutine