felixge, ok, so connection.end() waits for the query to execute